NM
Section: User Commands (1)
Updated: April 29, 1985
Index
Return to Main Contents
NAME
nm - print name list
SYNOPSIS
nm
[
-agnopru
]
[ file ... ]
DESCRIPTION
Nm
prints the name list (symbol table) of each object
file
in the argument list. If an argument is an archive, a listing for each object
file in the archive will be produced. If no
file
is given, the symbols in "a.out" are listed.
Each symbol name is preceded by its value (blanks if undefined)
and one of the letters
U
(undefined),
A
(absolute),
T
(text segment symbol),
D
(data segment symbol),
B
(bss segment symbol),
C
(common symbol),
f
file name,
or
-
for debugger symbol table entries (see
-a
below).
If the symbol is local (non-external) the type letter is in lower case.
The output is sorted alphabetically.
Options are:
- -a
-
Print symbol table entries inserted for use by debuggers.
- -g
-
Print only global (external) symbols.
- -n
-
Sort numerically rather than alphabetically.
- -o
-
Prepend file or archive element name to each output line rather than only once.
- -p
-
Don't sort; print in symbol-table order.
- -r
-
Sort in reverse order.
- -u
-
Print only undefined symbols.
ULTRIX NM
The Ultrix version of nm, running on the DECstations, uses different type
letters. The letters are:
- N
-
nil storage class, compiler internal usage
- T
-
external text
- t
-
local text
- D
-
external initialized data
- d
-
local initialized data
- B
-
external zeroed data
- b
-
local zeroed data
- A
-
external absolute
- a
-
local absolute
- U
-
external undefined
- G
-
external small initialized data
- g
-
local small initialized data
- S
-
external small zeroed data
- s
-
local small zeroed data
- R
-
external read only
- r
-
local read only
- C
-
common
- E
-
small common
- V
-
external small undefined
SEE ALSO
ar(1), ar(5), a.out(5), stab(5)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- ULTRIX NM
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 22:49:04 GMT, December 11, 2024